package com.cyt.web.controller.sys;

import com.cyt.sys.util.server.Server;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * 服务器监控
 *
 * @author congcong tao
 * @date 2019/3/5 14:44
 */
@RestController
public class SysServerController extends SysBaseController {

    /**
     * 服务器相关信息
     *
     * @author congcong tao
     * @date 2019/3/5 14:44
     */
    @RequestMapping("/sys/server/serverShow")
    public ModelAndView getServerInfo() throws Exception {
        ModelAndView view = new ModelAndView("/sys/server/serverShow");
        Server server = new Server();
        server.copyTo();
        view.addObject("server", server);
        return view;
    }
}
